package org.jeecg.common.modules.doctor.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.lettuce.core.dynamic.annotation.Param;
import org.apache.ibatis.annotations.Update;
import org.jeecg.common.modules.doctor.entity.DoctorWxUserinfoRelation;

/**
 * @Description: doctor_account_flow
 * @Author: jeecg-boot
 * @Date:   2020-08-22
 * @Version: V1.0
 */
public interface DoctorWxUserinfoRelationMapper extends BaseMapper<DoctorWxUserinfoRelation> {

    /**
     * 更改图文剩余条数
     * @param id
     * @param count
     */
    @Update("update doctor_wx_userinfo_relation set text_number = text_number + ${count} where id = #{id}")
    void updateTextNumber(@Param("id") String id,@Param("count") int count);

}
